package com.fast.common.base;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @Title：基础实体类
 * @author：ylc
 * @date：2018/7/13 11:39
 * @version：1.0
 **/
@Data
public abstract class BaseEntity {
    @TableId(value = "id" , type = IdType.ID_WORKER)
    private Long id;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    protected Date createTime;

    @TableField(value = "create_by", fill = FieldFill.INSERT)
    protected Long createBy;

    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    protected Date updateTime;

    @TableField(value = "update_by", fill = FieldFill.UPDATE)
    protected Long updateBy;
}
